package org.lex.dbq.exception;

public class AppException extends Exception {
	private static final long serialVersionUID = 530845350257977771L;
	private int code = 0;

	public AppException(int code) {
		super();
		this.code = code;
	}

	public AppException(String message, int code) {
		super(message);
		this.code = code;
	}

	public AppException(Throwable cause, int code) {
		super(cause);
		this.code = code;
	}

	public AppException(String message, Throwable cause, int code) {
		super(message, cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}
}
